package cn.itsource.article.mapper;

import cn.itsource.article.domain.ArticleType;
import cn.itsource.article.query.ArticleTypeQuery;
import cn.itsource.org.domain.User;

import java.util.List;

/**
* @author DELL
* @description 针对表【tb_article_type(文章类型表)】的数据库操作Mapper
* @createDate 2024-06-04 15:56:45
* @Entity cn.itsource.article.domain.ArticleType
*/
public interface ArticleTypeMapper {

    int deleteByPrimaryKey(Long id);

    int insert(ArticleType record);

    int insertSelective(ArticleType record);

    ArticleType selectByPrimaryKey(Long id);
    List<ArticleType> selectAllByQuery(ArticleTypeQuery articleTypeQuery);

    int updateByPrimaryKeySelective(ArticleType record);

    int updateByPrimaryKey(ArticleType record);


    void deleteByConllection(List<ArticleType> articleTypes);

    ArticleType getByName(String name);
    //查询所有的文章类型
    List<ArticleType> getAll();
}
